package org.davidtrevien.com.imput.omi.panels.center.planning.details;

import org.davidtrevien.com.imput.omi.panels.center.planning.model.TTask;
import org.davidtrevien.com.imput.omi.panels.center.planning.processdata.impl.TOsProcessData;
import org.davidtrevien.com.imput.omi.panels.center.planning.processdata.impl.TTaskProcessData;
import org.davidtrevien.utils.controler.Controller;

public class TaskDetailsCtrl
	extends Controller<TaskDetailsView> {

	TOsProcessData tOsProcessData;
	
	TTaskProcessData tTaskProcessData;

	public TaskDetailsCtrl() {
		initComponent();
	}

	private void initComponent() {
		this.view = new TaskDetailsView();
	} 
	
	public void setTaskToDetail(TTask task) {
		if (task == null) {
			this.view.textzone.setText("");
		}
		else {
			this.view.textzone.setText(task.getLabel());
		}
	}

}
